<div class="modal fade" id="modal-create">
    <div class="modal-dialog">
        <div class="modal-content">
            <form id="create-form" method="POST" class="form-horizontal">
                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">×</span>
                    </button>
                    <h4 class="modal-title">添加权限</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            上级
                        </label>
                        <div class="col-sm-8 parent_id">
                            <input type="text" name="parent_id" value="" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            权限名
                        </label>
                        <div class="col-sm-8">
                            <input type="text" name="name" value="" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            显示名称
                        </label>
                        <div class="col-sm-8">
                            <input type="text" name="display_name" value="" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            图标
                        </label>
                        <div class="col-sm-8 input-group" style="padding-right:15px;padding-left:15px;">
                            <input type="text" name="icon" value="" class="form-control" placeholder="图标名称，去fa-前缀">
                            <span class="input-group-addon">
                                <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">
                                    <i class="fa fa-info-circle"></i>
                                </a>
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            菜单显示
                        </label>
                        <div class="col-sm-8">
                            <label class="radio-inline">
                                <input type="radio" name="is_menu" value="1">是
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="is_menu" value="0" checked="checked">否
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            排序
                        </label>
                        <div class="col-sm-8">
                            <input type="text" name="sort_order" value="100" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            描述
                        </label>
                        <div class="col-sm-8">
                            <textarea name="description" class="form-control" rows="3" placeholder=""></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal">
                        取消
                    </button>
                    <button type="submit" class="btn btn-primary">
                        确认
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="modal fade" id="modal-delete">
    <div class="modal-dialog">
        <div class="modal-content">
            <form id="delete-form" method="POST" class="form-horizontal">
                <input type="hidden" name="id" value="">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">×</span>
                    </button>
                    <h4 class="modal-title">操作确认</h4>
                </div>
                <div class="modal-body">
                    <p class="lead">
                        <i class="fa fa-question-circle fa-lg"></i>
                            您确认要删除
                            <kbd><span id="delete-notice-data">data</span></kbd>
                            吗？
                     </p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal">
                        取消
                    </button>
                    <button type="submit" class="btn btn-primary">
                        确认
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="modal fade" id="modal-edit">
    <div class="modal-dialog">
        <div class="modal-content">
            <form id="edit-form" method="POST" class="form-horizontal">
                <input type="hidden" name="_method" value="PUT">
                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                <input type="hidden" name="id" value="">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">×</span>
                    </button>
                    <h4 class="modal-title">编辑权限</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            上级
                        </label>
                        <div class="col-sm-8 parent_id">
                            <input type="text" name="parent_id" value="" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            权限名
                        </label>
                        <div class="col-sm-8">
                            <input type="text" name="name" value="" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            显示名称
                        </label>
                        <div class="col-sm-8">
                            <input type="text" name="display_name" value="" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            图标
                        </label>
                        <div class="col-sm-8 input-group" style="padding-right:15px;padding-left:15px;">
                            <input type="text" name="icon" value="" class="form-control" placeholder="图标名称，去fa-前缀">
                            <span class="input-group-addon">
                                <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">
                                    <i class="fa fa-info-circle"></i>
                                </a>
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            菜单显示
                        </label>
                        <div class="col-sm-8">
                            <label class="radio-inline">
                                <input type="radio" name="is_menu" value="1">是
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="is_menu" value="0">否
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            排序
                        </label>
                        <div class="col-sm-8">
                            <input type="text" name="sort_order" value="100" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            描述
                        </label>
                        <div class="col-sm-8">
                            <textarea name="description" class="form-control" rows="3" placeholder=""></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal">
                        取消
                    </button>
                    <button type="submit" class="btn btn-primary">
                        确认
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>